package net.lzzy.lxq.server;

import net.lzzy.lxq.dao.UserMapper;
import net.lzzy.lxq.entities.UserBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserService {
    @Autowired
    UserMapper mapper;

    public UserBean getUser(String id,String password){
        return mapper.getUser(id, password);
    }

    public List<UserBean> getAll(){
        return mapper.getUsers();
    }

    public int addUser(UserBean userBean){
        return mapper.add(userBean);
    }
}
